/* Загальні стилі */
body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #1a1a2e;
    color: #e0e0e0;
    line-height: 1.6;
}

h1, h2 {
    color: #ffffff;
    text-align: center;
}

h2 {
    font-size: 2.5em;
    margin-bottom: 40px;
    text-transform: uppercase;
}

section {
    padding: 60px 20px;
}






/* Навігація */
header {
    background-color: #162447; 
    /* подумати як краще  */
    padding: 15px 30px;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

nav {
    display: flex;
    align-items: center;
}

nav .logo {
    font-size: 1.8em;
    font-weight: 700;
    color: #e43f5a;
    text-decoration: none;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
    margin: 0;
}

nav ul li a {
    color: #e0e0e0;
    text-decoration: none;
    font-size: 1em;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #e43f5a;
}









/* Головний екран (Hero) */
.hero {
    position: relative; /* Обов'язково! Це точка відліку для відео */
    width: 100%;
    height: 100vh; /* Висота на весь екран */
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden; /* Обрізає все зайве */
    color: white; /* Колір тексту */
    text-align: center;
}

.back-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; 
    z-index: -2; 
}


.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}


.hero-content {
    position: relative;
    z-index: 1; 
    max-width: 800px; 
    padding: 20px;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(22, 36, 71, 0.7);
}

.hero-content {
    z-index: 1;
}

.hero h1 {
    font-size: 3em;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.4em;
    margin-bottom: 30px;
}

.cta-button {
    background-color: #e43f5a;
    color: #fff;
    padding: 15px 30px;
    border: none;
    border-radius: 5px;
    font-size: 1.2em;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #b32e42;
}










/* Секція "Про нас" */
#about {
    background-color: #1b2845;
}

.about-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-container img {
    max-width: 100%;
    border-radius: 10px;
    margin-bottom: 20px;
}

.about-container p {
    font-size: 1.2em;
    line-height: 1.8;
}









/* Секція "Послуги" */
.services-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.service-card {
    padding: 30px;
    border-radius: 10px;
    width: 300px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(228, 63, 90, 0.4);
}

.service-card h3 {
    color: #e43f5a;
    font-size: 1.5em;
    margin-top: 0;
}

.price {
    font-size: 1.2em;
    font-weight: 700;
    color: #fff;
    margin-top: 15px;
}









/* Секція "Каталог виробів" */
#products {
    background-color: #1b2845;
}

.products-container {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
}

.products-category {
    padding: 20px 30px;
    border-radius: 10px;
    width: 350px;
}

.products-category h3 {
    color: #e43f5a;
    border-bottom: 2px solid #e43f5a;
    padding-bottom: 10px;
}










/* Секція "Контакти" */
.contact-container {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
    align-items: flex-start;
}

.contact-info {
    max-width: 400px;
}

#booking-form {
    display: flex;
    flex-direction: column;
    width: 400px;
    gap: 15px;
}

#booking-form input, #booking-form textarea {
    padding: 15px;
    border: 1px solid #162447;
    background-color: #1f4068;
    color: #e0e0e0;
    border-radius: 5px;
    font-family: 'Montserrat', sans-serif;
}

#booking-form input::placeholder, #booking-form textarea::placeholder {
    color: #a0a0a0;
}








/* Футер (підвал) */
footer {
    text-align: center;
    padding: 20px;
    background-color: #162447;
    color: #a0a0a0;
}







/* каталог зоображення */

.image-catalog {
  position: relative; /* Встановлює "батьківську" систему координат */
  display: inline-block; /* Щоб контейнер обгортав зображення */
}

.text-overlay {
  position: absolute; /* Позиціонує текст відносно .image-container */
  top: 50%; /* Розміщує верхній край тексту на 50% висоти контейнера */
  left: 50%; /* Розміщує лівий край тексту на 50% ширини контейнера */
  transform: translate(-50%, -50%); /* Центрує текст точно по середині */
  
  /* Додаткові стилі для краси */
  color: white;
  text-align: center;
  background-color: rgba(0, 0, 0, 0.5); /* Напівпрозорий чорний фон */
  padding: 20px;
  border-radius: 5px;
}

/* Переконайтеся, що зображення заповнює контейнер */
.image-catalog img {
  display: block;
  width: 100%;
  height: auto;
}









/* Service зоображення */

.image-backgroundService {
  background-image:  url('KitchenTable3.jpeg');

  
  /* Налаштування фону */
  background-size: cover; /* Масштабує зображення, щоб воно покрило блок */
  background-position: center; /* Центрує зображення */
    
  /* Стилі для тексту */
  color: white;
  
  /* Використання Flexbox для легкого центрування тексту */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}



.image-backgroundService img {
  display: block;
  width: 100%;
  height: auto;
}

.text-content {
   /* Опціонально: додайте фон для кращої читабельності */
   background-color: rgba(0, 0, 0, 0.5);
   padding: 20px;
   border-radius: 5px;
}








/* зоображення About */

/* Контейнер для зображення і тексту */
.image-containerAbout {
    position: relative; /* Встановлює "якорь" для позиціонування */
    width: 600px; /* Або будь-яка інша ширина, наприклад, 100% */
    
    /* Це потрібно, щоб контейнер "облягав" зображення. 
       Можна також використати 'display: inline-block;' */
    line-height: 0; 
}

/* Базове зображення */
.image-containerAbout img {
  display: block;
  width: 1475px;
  height: 750px;
}

/* Блок з текстом, що накладається */
.text-overlay1 {
    position: absolute; /* "Вириваємо" текст з потоку */
    
    /* 📌 Визначаємо позицію (наприклад, у верхньому лівому куті) */
    top: 20px;
    left: 30px;
    
    /* 🎨 Стилізуємо текст для читабельності */
    color: white;
    padding: 15px;
    
    /* Прозорий чорний фон, щоб текст було видно на будь-якому фото */
    background-color: rgba(0, 0, 0, 0.6); 
    
    border-radius: 5px; /* Заокруглені кути (необов'язково) */
    
    /* (Необов'язково) Обмежуємо ширину тексту */
    max-width: 300px; 
    
    /* Повертаємо нормальну висоту рядка для тексту */
    line-height: 1.5; 
}









/* ========================================= */
/* АДАПТАЦІЯ ДЛЯ МОБІЛЬНИХ (до 768px)        */
/* ========================================= */

@media (max-width: 768px) {

    /* 1. ЗАГАЛЬНІ НАЛАШТУВАННЯ */
    body {
        overflow-x: hidden; /* Запобігає горизонтальному скролу */
    }

    h1 {
        font-size: 2em; /* Зменшуємо заголовок */
    }

    h2 {
        font-size: 1.8em;
        margin-bottom: 25px;
    }

    section {
        padding: 40px 15px; /* Менші відступи по боках */
    }

    /* 2. НАВІГАЦІЯ (Робимо стовпчиком замість зникнення) */
    header {
        position: relative; /* На мобільному краще не фіксувати, якщо меню велике */
        padding: 10px;
    }

    nav {
        flex-direction: column; /* Логотип зверху, меню знизу */
        gap: 15px;
    }

    nav ul {
        display: flex; /* Повертаємо меню! */
        flex-direction: column; /* Посилання одне під одним */
        gap: 10px;
        text-align: center;
        padding: 0;
    }

    nav ul li a {
        display: block;
        padding: 5px;
        font-size: 1.1em;
    }

    /* 3. HERO СЕКЦІЯ */
    .hero-content {
        width: 100%;
        padding: 0 15px;
    }

    .hero h1 {
        font-size: 2em; /* Менший шрифт для гасла */
    }

    .hero p {
        font-size: 1.1em;
    }

    /* 4. ВИПРАВЛЕННЯ ФІКСОВАНИХ ШИРИН (Критично важливо!) */
    
    /* Форма бронювання */
    #booking-form {
        width: 100%; /* Замість 400px */
        max-width: 100%;
    }

    /* Картки послуг */
    .service-card {
        width: 100%; /* Розтягуємо на всю ширину */
        max-width: 350px; /* Але не більше ніж 350px */
        margin: 0 auto; /* Центруємо */
    }

    /* Картки товарів */
    .products-category {
        width: 100%; /* Замість фіксованих 350px */
        padding: 20px 15px;
    }

    /* Контейнери */
    .contact-container,
    .services-container,
    .products-container {
        flex-direction: column; /* Елементи один під одним */
        align-items: center;
        gap: 30px;
    }

    .contact-info {
        max-width: 100%;
        text-align: center;
    }

    /* 5. ВИПРАВЛЕННЯ КАРТИНКИ "ABOUT" */
    .image-containerAbout {
        width: 100%; /* Замість 600px */
        height: auto;
    }

    .image-containerAbout img {
        width: 100%; /* Замість 1475px */
        height: auto; /* Зберігає пропорції */
    }

    .text-overlay1 {
        position: static; /* Текст стає під картинкою, а не на ній (краще читається на мобільному) */
        width: 100%;
        max-width: 100%;
        background-color: #162447; /* Фон, щоб зливався з дизайном */
        margin-top: -5px;
        border-radius: 0 0 10px 10px;
    }
    
    /* Каталог - текст по центру */
    .text-overlay {
        width: 80%; /* Трохи ширше на телефонах */
        font-size: 0.9em;
    }
}